Skip to main content

CreateDeploymentSet

Description

call CreateDeploymentSet to create a deployment set in the specified region.

Request Method

POST

Request Path

/apsara/route/Ecs/CreateDeploymentSet

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
OnUnableToRedeployFailedInstanceBODYstringNoCancelMembershipAndStartAfter the instance in the deployment set is down and migrated, there is a lack of emergency processing plan for the instance inventory that can be broken up. Value range: CancelMembershipAndStart (default): remove the instance from the deployment set and start the instance immediately after the outage migration. KeepStopped: keep abnormal state and wait for sufficient replenishment before starting the instance.
DescriptionBODYstringNoThis is a description example.deployment set description information. 2 to 256 English or Chinese characters in length and cannot start with http:// or https.
regionIdBODYstringYesNo sample value for this parameter.region id
StrategyBODYstringNonulldeployment policy. Value range: LooseDispersion: as scattered as possible. LooseAggregation: try to aggregate. StrictAggregation: strict aggregation. StrictDispersion: strictly dispersed. default value: LooseDispersion. If the deployment granularity is Switch, four deployment policies can be supported. If the deployment granularity is Rack or Host, you can only choose to disperse as much as possible or strictly disperse.
DeploymentSetNameBODYstringNoFinanceDeploymentdeployment set name. The length is 2~128 English or Chinese characters. It must start with a letter or Chinese, and cannot start with http:// or https. It can contain numbers, colons (:), underscores (_), or hyphens (-).
RegionIdBODYstringYescn-qingdao-****the region ID of the deployment set. You can call the DescribeRegions to view the latest Alibaba Cloud region list.
ClientTokenBODYstringNo123e4567-e89b-12d3-a456-426655440000Ensure request idempotence. Generate a parameter value from your client to ensure that the parameter value is unique between different requests. ClientToken only supports ASCII characters and cannot exceed 64 characters. For more details, please refer to the section on how to ensure idempotence in the cloud server ECS development guide.
DomainBODYstringNonulldeployment domain. Value range: Default Switch default value: Default.
GranularityBODYstringNonulldeployment granularity. Value range: Host: host, which means that the minimum scheduling granularity is a physical server. Rack: The minimum scheduling granularity is one rack. Switch: The minimum scheduling granularity is a network switch. default value: Host. If the deployment domain is Switch, the deployment granularity cannot select Switch.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}